Skip to content

blk-cgroup: protect q->blkg_list iteration in blkg_destroy_all() with blkcg_mutex#991

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1115666=>linus-master
Open

blk-cgroup: protect q->blkg_list iteration in blkg_destroy_all() with blkcg_mutex#991
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1115666=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

Pull request for series with
subject: blk-cgroup: protect q->blkg_list iteration in blkg_destroy_all() with blkcg_mutex
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1115666

… blkcg_mutex

blkg_destroy_all() iterates q->blkg_list without holding blkcg_mutex,
which can race with blkg_free_workfn() that removes blkgs from the list
while holding blkcg_mutex.

Add blkcg_mutex protection around the q->blkg_list iteration to prevent
potential list corruption or use-after-free issues.

Reviewed-by: Tang Yizhou <yizhou.tang@shopee.com>
Signed-off-by: Yu Kuai <yukuai@fygo.io>
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1115666
version: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants